<div class="search-box">
	<form class="search_form layui-form" lay-filter="dianzi_search_form">
		
		<div class="layui-inline search-radio-box">
			<div class="layui-input-inline">
				<label class="layui-form-label layui-bg-blue">审核状态</label>
				<div class="layui-input-inline search-radio-box">
					<input type="radio" name="apply_state" value="" title="全部" checked>
					<input type="radio" name="apply_state" value="0" title="等待审核">
					<input type="radio" name="apply_state" value="1" title="审核通过">
					<input type="radio" name="apply_state" value="2" title="驳回申请">
				</div>
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">订单号</label>
			<div class="layui-input-inline">
				<input type="text" name="order_no" autocomplete="off" class="layui-input"
					onkeyup="this.value=this.value.replace(/[, ]/g,'')">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">军采单号</label>
			<div class="layui-input-inline">
				<input type="text" name="out_order_no" autocomplete="off" class="layui-input"
					onkeyup="this.value=this.value.replace(/[, ]/g,'')">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">订单时间</label>
			<div class="layui-input-inline">
				<input type="text" name="order_time_start" autocomplete="off" class="layui-input"
					placeholder="开始日期">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="order_time_end" autocomplete="off" class="layui-input"
					placeholder="结束日期">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">申请时间</label>
			<div class="layui-input-inline">
				<input type="text" name="apply_time_start" autocomplete="off" class="layui-input"
					placeholder="开始日期">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="apply_time_end" autocomplete="off" class="layui-input"
					placeholder="结束日期">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">审核时间</label>
			<div class="layui-input-inline">
				<input type="text" name="audit_time_start" autocomplete="off" class="layui-input"
					placeholder="开始日期">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="audit_time_end" autocomplete="off" class="layui-input"
					placeholder="结束日期">
			</div>
		</div>
		<div class="layui-inline">
			<div class="layui-input-inline">
				<button type="button" id="dianzi_search_btn"
					class="layui-btn layui-btn-normal layui-btn-sm layui-bg-red">搜 索</button>
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<table class="layui-hide" id="dianzi_list" lay-filter="dianzi_list"></table>
<script>
	var dianzi_list_url = "{:url('dianzi/ajaxList')}";
	var dianzi_pass_url = "{:url('dianzi/ajaxPass')}";
	var dianzi_refuse_url = "{:url('dianzi/ajaxRefuse')}";
	var view_order_url = "{:url('order/detail')}";
	var history_url = "{:url('dianzi/history')}";
	var dianzi_cols = {$cols};
</script>
<script src="/static/js/dianzi/dianzi.js" type="text/javascript" charset="utf-8"></script>
<script type="text/html" id="companyNameTpl">
	{{# return d.supplier.company_name }}
</script>
<script type="text/html" id="dianzi_apply_stateTpl">
	{{# if(d.apply_state == 1){ }}
		<div class="layui-anim circle layui-bg-blue" data-title="通过">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# } else if(d.apply_state == 0){ }}
		<div class="layui-anim circle layui-bg-orange" data-title="等待">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# } else { }}
		<div class="layui-anim circle layui-bg-red" data-title="驳回">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# }}}
</script>
<script type="text/html" id="dianzi_tool">
	<div class="layui-btn-group">
		{{# if(d.apply_state == 0){}}
		<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="pass" data-id="{{ d.id}}" data-title="通过"><i class="layui-icon layui-icon-ok"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="refuse" data-id="{{ d.id}}" data-title="拒绝"><i class="layui-icon layui-icon-close"></i></a>
		{{#}}}
		<a class="layui-btn layui-btn-xs" lay-event="view" data-id="{{ d.order_no}}" data-title="查看"><i class="layui-icon layui-icon-file"></i></a>
		<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="history" data-id="{{ d.phone}}" data-title="历史回款时长"><i class="layui-icon layui-icon-log"></i></a>
	</div>
</script>